﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>登录超时</title>
    <style>
        html, body {
            height: 100%;
        }

        body {
            margin: 0
        }

        .cuserror {
            background-color: #f8f8f8;
            text-align: center;
            height: 99%;
        }

            .cuserror .boxcontent {
                position: absolute;
                left: 50%;
                top: 50%;
                margin-left: -300px;
                margin-top: -200px;
            }

            .cuserror .msg {
                color: #808080;
                font-size: 14px;
            }
    </style>

</head>
<body>
    <div class="cuserror">
        <div class="boxcontent">
            <img src="/images/timeout.png" />
            <div class="msg">登录超时，请&nbsp;<a href="/Login" target="_top">重新登录&gt;&gt;</a><b id="lab_login"></b></div>
        </div>
    </div>
</body>
<script>
    var timtoutindex = 5;
    var timtint = setInterval(function () {
        document.getElementById("lab_login").innerHTML = timtoutindex + "秒跳转到登陆页面";
        timtoutindex--;
        if (timtoutindex == 1) {
            clearInterval(timtint);
            window.top.location.href = "/Login";//跳转到登录页面.
        }
    }, 1000);
</script>
</html>
